home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
eulisp
/
feel0_89.lha
/
Feel
/
Modules
/
xread.em
< prev
next >
Wrap
Lisp/Scheme
|
1993-07-13
|
546b
|
32 lines
;; Eulisp Module
;; Author: pab
;; File: xread.em
;; Date: Sun May 16 09:37:58 1993
;;
;; Project:
;; Description:
;;
(defmodule xread
(standard0
)
()
;; NB: Plenty of scope for bugs here
;; If we switch cpus for any reason (like a GC) we are sunk...
(defun xread (prompt)
(let ((stream (popen (format nil "xprompt -p ~a" prompt) 'input)))
(if (null stream)
(format t "Whups..")
(let ((res (read stream)))
(format t "~a -> ~a~%" prompt res)
res))))
(export xread)
;; end module
)